/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.alipay.android.app;

import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.Parcelable.Creator;

public abstract interface IRemoteServiceCallback extends IInterface {
    public abstract void a(String paramString1, String paramString2, int paramInt, Bundle paramBundle);

    public static abstract class a extends Binder implements IRemoteServiceCallback {
        public a() {
            attachInterface(this, "com.alipay.android.app.IRemoteServiceCallback");
        }

        public static IRemoteServiceCallback a(IBinder paramIBinder) {
            if (paramIBinder == null)
                return null;
            IInterface localIInterface = paramIBinder
                    .queryLocalInterface("com.alipay.android.app.IRemoteServiceCallback");
            if ((localIInterface != null) && (localIInterface instanceof IRemoteServiceCallback))
                return ((IRemoteServiceCallback) localIInterface);
            return new a(paramIBinder);
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2) {
            switch (paramInt1) {
            case 1598968902:
                paramParcel2.writeString("com.alipay.android.app.IRemoteServiceCallback");
                return true;
            case 1:
                paramParcel1.enforceInterface("com.alipay.android.app.IRemoteServiceCallback");
                String str1 = paramParcel1.readString();
                String str2 = paramParcel1.readString();
                int i = paramParcel1.readInt();
                Bundle localBundle;
                if (paramParcel1.readInt() != 0)
                    localBundle = (Bundle) Bundle.CREATOR.createFromParcel(paramParcel1);
                else
                    localBundle = null;
                a(str1, str2, i, localBundle);
                paramParcel2.writeNoException();
                return true;
            }
            return super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2);
        }

        private static class a implements IRemoteServiceCallback {
            private IBinder a;

            a(IBinder paramIBinder) {
                this.a = paramIBinder;
            }

            public IBinder asBinder() {
                return this.a;
            }

            public void a(String paramString1, String paramString2, int paramInt, Bundle paramBundle) {
                Parcel localParcel1 = Parcel.obtain();
                Parcel localParcel2 = Parcel.obtain();
                try {
                    localParcel1.writeInterfaceToken("com.alipay.android.app.IRemoteServiceCallback");
                    localParcel1.writeString(paramString1);
                    localParcel1.writeString(paramString2);
                    localParcel1.writeInt(paramInt);
                    if (paramBundle != null) {
                        localParcel1.writeInt(1);
                        paramBundle.writeToParcel(localParcel1, 0);
                    }
                    else {
                        localParcel1.writeInt(0);
                    }
                    this.a.transact(1, localParcel1, localParcel2, 0);
                    localParcel2.readException();
                } finally {
                    localParcel2.recycle();
                    localParcel1.recycle();
                }
            }
        }
    }
}